package com.hst.web.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;

@Entity
@Table(name = "t_vehicle_sub")
@Comment("车辆信息附属表")
@HSID(length = 10, prefix = "V", resetByDay = true)
public class TVehicleSub {

	@Id
	@Column(name = "id", length = 10)
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String id;

	@Column(name = "vehicle_code", length = 16)
	@Comment("车辆编号")
	private String vehicleCode;

	@Column(name = "attr_name", length = 255)
	@Comment("属性名")
	private String attrName;

	@Column(name = "attr_value", length = 255)
	@Comment("属性值")
	private String attrValue;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getVehicleCode() {
		return vehicleCode;
	}

	public void setVehicleCode(String vehicleCode) {
		this.vehicleCode = vehicleCode;
	}

	public String getAttrName() {
		return attrName;
	}

	public void setAttrName(String attrName) {
		this.attrName = attrName;
	}

	public String getAttrValue() {
		return attrValue;
	}

	public void setAttrValue(String attrValue) {
		this.attrValue = attrValue;
	}

}
